<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<title>OpenShoe: usbc_otg.h Source File</title>

<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css" />

<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { searchBox.OnSelectItem(0); });
</script>

</head>
<body>
<div id="top"><!-- do not remove this div! -->


<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  
  
  <td style="padding-left: 0.5em;">
   <div id="projectname">OpenShoe
   &#160;<span id="projectnumber">0.1</span>
   </div>
   
  </td>
  
  
  
 </tr>
 </tbody>
</table>
</div>

<!-- Generated by Doxygen 1.7.5.1 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="pages.html"><span>Related&#160;Pages</span></a></li>
      <li><a href="modules.html"><span>Modules</span></a></li>
      <li><a href="annotated.html"><span>Data&#160;Structures</span></a></li>
      <li class="current"><a href="files.html"><span>Files</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="files.html"><span>File&#160;List</span></a></li>
      <li><a href="globals.html"><span>Globals</span></a></li>
    </ul>
  </div>
<div class="header">
  <div class="headertitle">
<div class="title">usbc_otg.h</div>  </div>
</div>
<div class="contents">
<a href="usbc__otg_8h.html">Go to the documentation of this file.</a><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 
<a name="l00039"></a>00039 <span class="preprocessor">#ifndef _USBC_OTG_H_</span>
<a name="l00040"></a>00040 <span class="preprocessor"></span><span class="preprocessor">#define _USBC_OTG_H_</span>
<a name="l00041"></a>00041 <span class="preprocessor"></span>
<a name="l00042"></a>00042 <span class="preprocessor">#include &quot;<a class="code" href="compiler_8h.html" title="Compiler file for AVR32.">compiler.h</a>&quot;</span>
<a name="l00043"></a>00043 <span class="preprocessor">#include &quot;<a class="code" href="preprocessor_8h.html" title="Preprocessor utils.">preprocessor.h</a>&quot;</span>
<a name="l00044"></a>00044 
<a name="l00053"></a>00053 
<a name="l00058"></a><a class="code" href="group__otg__group.html#ga276fd7e676117783fc8d3a45aeda3351">00058</a> <span class="preprocessor">#define  otg_get_ip_name()                   (((uint64_t)AVR32_USBC.uname2&lt;&lt;32)|(uint64_t)AVR32_USBC.uname1)</span>
<a name="l00059"></a>00059 <span class="preprocessor"></span>
<a name="l00060"></a><a class="code" href="group__otg__group.html#ga60eb9bc13cc48c77512db1849b54c4eb">00060</a> <span class="preprocessor">#define  otg_data_memory_barrier()           (AVR32_USBC.uvers)</span>
<a name="l00061"></a>00061 <span class="preprocessor"></span>
<a name="l00062"></a><a class="code" href="group__otg__group.html#ga44d71ccfd479392e4bbfd49057c4bf32">00062</a> <span class="preprocessor">#define  otg_get_ip_version()                (Rd_bitfield(AVR32_USBC.uvers, AVR32_USBC_UVERS_VERSION_NUM_MASK))</span>
<a name="l00063"></a>00063 <span class="preprocessor"></span>
<a name="l00064"></a><a class="code" href="group__otg__group.html#ga9ed10ed0cd9edede61a871d74b1d6859">00064</a> <span class="preprocessor">#define  otg_get_metal_fix_nbr()             (Rd_bitfield(AVR32_USBC.uvers, AVR32_USBC_UVERS_METAL_FIX_NUM_MASK))</span>
<a name="l00065"></a>00065 <span class="preprocessor"></span>
<a name="l00066"></a><a class="code" href="group__otg__group.html#gadfdcbe969406b8f621bfd82699361e5c">00066</a> <span class="preprocessor">#define  otg_get_dpram_size()                (128 &lt;&lt; Rd_bitfield(AVR32_USBC.ufeatures, AVR32_USBC_UFEATURES_FIFO_MAX_SIZE_MASK))</span>
<a name="l00067"></a>00067 <span class="preprocessor"></span>
<a name="l00068"></a><a class="code" href="group__otg__group.html#gac0da3ffdf225df7c33fef4f535147db0">00068</a> <span class="preprocessor">#define  Is_otg_dpram_byte_write_capable()   (Tst_bits(AVR32_USBC.ufeatures, AVR32_USBC_UFEATURES_BYTE_WRITE_DPRAM_MASK))</span>
<a name="l00069"></a>00069 <span class="preprocessor"></span>
<a name="l00070"></a><a class="code" href="group__otg__group.html#ga00fe620dc8bbaa5707c691621f77321c">00070</a> <span class="preprocessor">#define  otg_get_ip_paddress_size()          (AVR32_USBC.uaddrsize)</span>
<a name="l00071"></a>00071 <span class="preprocessor"></span>
<a name="l00072"></a>00072 
<a name="l00077"></a><a class="code" href="group__otg__group.html#ga1eac01e72e370946e44c6e372e77a394">00077</a> <span class="preprocessor">#define  OTG_ID_PIN                          ATPASTE2(OTG_ID, _PIN)</span>
<a name="l00078"></a><a class="code" href="group__otg__group.html#ga67896e3d73053c7c3abfa5956dc47dbd">00078</a> <span class="preprocessor"></span><span class="preprocessor">#define  OTG_ID_FUNCTION                     ATPASTE2(OTG_ID, _FUNCTION)</span>
<a name="l00079"></a>00079 <span class="preprocessor"></span>
<a name="l00081"></a><a class="code" href="group__otg__group.html#gaa8520a37f119fe71fa225da806595233">00081</a> <span class="preprocessor">#define  otg_input_id_pin() \</span>
<a name="l00082"></a>00082 <span class="preprocessor">{\</span>
<a name="l00083"></a>00083 <span class="preprocessor">   (Tst_bits(OTG_ID_FUNCTION, 0x01)) ?\</span>
<a name="l00084"></a>00084 <span class="preprocessor">      (AVR32_GPIO.port[OTG_ID_PIN &gt;&gt; 5].pmr0s = 1 &lt;&lt; (OTG_ID_PIN &amp; 0x1F)) :\</span>
<a name="l00085"></a>00085 <span class="preprocessor">      (AVR32_GPIO.port[OTG_ID_PIN &gt;&gt; 5].pmr0c = 1 &lt;&lt; (OTG_ID_PIN &amp; 0x1F)); \</span>
<a name="l00086"></a>00086 <span class="preprocessor">   (Tst_bits(OTG_ID_FUNCTION, 0x02)) ?\</span>
<a name="l00087"></a>00087 <span class="preprocessor">      (AVR32_GPIO.port[OTG_ID_PIN &gt;&gt; 5].pmr1s = 1 &lt;&lt; (OTG_ID_PIN &amp; 0x1F)) :\</span>
<a name="l00088"></a>00088 <span class="preprocessor">      (AVR32_GPIO.port[OTG_ID_PIN &gt;&gt; 5].pmr1c = 1 &lt;&lt; (OTG_ID_PIN &amp; 0x1F)); \</span>
<a name="l00089"></a>00089 <span class="preprocessor">   AVR32_GPIO.port[OTG_ID_PIN &gt;&gt; 5].gperc = 1 &lt;&lt; (OTG_ID_PIN &amp; 0x1F);\</span>
<a name="l00090"></a>00090 <span class="preprocessor">   AVR32_GPIO.port[OTG_ID_PIN &gt;&gt; 5].puers = 1 &lt;&lt; (OTG_ID_PIN &amp; 0x1F);\</span>
<a name="l00091"></a>00091 <span class="preprocessor">}</span>
<a name="l00092"></a>00092 <span class="preprocessor"></span>
<a name="l00093"></a><a class="code" href="group__otg__group.html#gaf5cc6e51a0bd88c118f63a999e7cf759">00093</a> <span class="preprocessor">#define  Is_otg_id_pin_input() \</span>
<a name="l00094"></a>00094 <span class="preprocessor">            ( !Tst_bits(AVR32_GPIO.port[OTG_ID_PIN &gt;&gt; 5].gper, 1 &lt;&lt; (OTG_ID_PIN &amp; 0x1F)) &amp;&amp;\</span>
<a name="l00095"></a>00095 <span class="preprocessor">               Tst_bits(AVR32_GPIO.port[OTG_ID_PIN &gt;&gt; 5].pmr0, 1 &lt;&lt; (OTG_ID_PIN &amp; 0x1F)) == Tst_bits(OTG_ID_PIN, 0x01) &amp;&amp;\</span>
<a name="l00096"></a>00096 <span class="preprocessor">               Tst_bits(AVR32_GPIO.port[OTG_ID_PIN &gt;&gt; 5].pmr1, 1 &lt;&lt; (OTG_ID_PIN &amp; 0x1F)) == Tst_bits(OTG_ID_PIN, 0x02))</span>
<a name="l00097"></a>00097 <span class="preprocessor"></span>
<a name="l00099"></a><a class="code" href="group__otg__group.html#ga8c345f8663b1f3432cb9882298e90a5b">00099</a> <span class="preprocessor">#define  otg_enable_id_pin()                 (Set_bits(AVR32_USBC.usbcon, AVR32_USBC_USBCON_UIDE_MASK))</span>
<a name="l00100"></a>00100 <span class="preprocessor"></span>
<a name="l00101"></a><a class="code" href="group__otg__group.html#ga8ad60737541846833dbddf8e92828e40">00101</a> <span class="preprocessor">#define  otg_disable_id_pin()                (Clr_bits(AVR32_USBC.usbcon, AVR32_USBC_USBCON_UIDE_MASK))</span>
<a name="l00102"></a>00102 <span class="preprocessor"></span>
<a name="l00103"></a><a class="code" href="group__otg__group.html#ga0c4344aeac9372eb1c455f23a844e1c8">00103</a> <span class="preprocessor">#define  Is_otg_id_pin_enabled()             (Tst_bits(AVR32_USBC.usbcon, AVR32_USBC_USBCON_UIDE_MASK))</span>
<a name="l00104"></a>00104 <span class="preprocessor"></span>
<a name="l00105"></a><a class="code" href="group__otg__group.html#ga0a20b90b831ebf250983ef5e15f6d561">00105</a> <span class="preprocessor">#define  otg_force_device_mode()             (Set_bits(AVR32_USBC.usbcon, AVR32_USBC_USBCON_UIMOD_MASK), otg_disable_id_pin())</span>
<a name="l00106"></a>00106 <span class="preprocessor"></span>
<a name="l00107"></a><a class="code" href="group__otg__group.html#gab9ff6cbcfe6c371a2cb9493c182fa6a8">00107</a> <span class="preprocessor">#define  Is_otg_device_mode_forced()         (!Is_otg_id_pin_enabled() &amp;&amp; Tst_bits(AVR32_USBC.usbcon, AVR32_USBC_USBCON_UIMOD_MASK))</span>
<a name="l00108"></a>00108 <span class="preprocessor"></span>
<a name="l00109"></a><a class="code" href="group__otg__group.html#ga7a96147ad9ff7531f799c5e2127efad1">00109</a> <span class="preprocessor">#define  otg_force_host_mode()               (Clr_bits(AVR32_USBC.usbcon, AVR32_USBC_USBCON_UIMOD_MASK), otg_disable_id_pin())</span>
<a name="l00110"></a>00110 <span class="preprocessor"></span>
<a name="l00111"></a><a class="code" href="group__otg__group.html#ga8d245cf2f27f09d9ae4dd6e68ef451eb">00111</a> <span class="preprocessor">#define  Is_otg_host_mode_forced()           (!Is_otg_id_pin_enabled() &amp;&amp; !Tst_bits(AVR32_USBC.usbcon, AVR32_USBC_USBCON_UIMOD_MASK))</span>
<a name="l00112"></a>00112 <span class="preprocessor"></span>
<a name="l00116"></a><a class="code" href="group__otg__group.html#ga873ba3797934aa55fdf0d179496e0e89">00116</a> <span class="preprocessor">#define  otg_enable_id_interrupt()           (Set_bits(AVR32_USBC.usbcon, AVR32_USBC_USBCON_IDTE_MASK))</span>
<a name="l00117"></a><a class="code" href="group__otg__group.html#ga88d47c2dfdbd1c720326b011db6a7ebd">00117</a> <span class="preprocessor"></span><span class="preprocessor">#define  otg_disable_id_interrupt()          (Clr_bits(AVR32_USBC.usbcon, AVR32_USBC_USBCON_IDTE_MASK))</span>
<a name="l00118"></a><a class="code" href="group__otg__group.html#gaee416d9364a73b24f67271cab0f697c5">00118</a> <span class="preprocessor"></span><span class="preprocessor">#define  Is_otg_id_interrupt_enabled()       (Tst_bits(AVR32_USBC.usbcon, AVR32_USBC_USBCON_IDTE_MASK))</span>
<a name="l00119"></a><a class="code" href="group__otg__group.html#ga75ab090e520e22605a84c77048814e9a">00119</a> <span class="preprocessor"></span><span class="preprocessor">#define  Is_otg_id_device()                  (Tst_bits(AVR32_USBC.usbsta, AVR32_USBC_USBSTA_ID_MASK))</span>
<a name="l00120"></a><a class="code" href="group__otg__group.html#ga473adb587b33ff08bc9afa2a916087b0">00120</a> <span class="preprocessor"></span><span class="preprocessor">#define  otg_ack_id_transition()             (AVR32_USBC.usbstaclr = AVR32_USBC_USBSTACLR_IDTIC_MASK)</span>
<a name="l00121"></a><a class="code" href="group__otg__group.html#ga221ed96e5450a2d29fdf265a99c430fc">00121</a> <span class="preprocessor"></span><span class="preprocessor">#define  otg_raise_id_transition()           (AVR32_USBC.usbstaset = AVR32_USBC_USBSTASET_IDTIS_MASK)</span>
<a name="l00122"></a><a class="code" href="group__otg__group.html#gad080cf4cce7110b5540021accd4e7f4c">00122</a> <span class="preprocessor"></span><span class="preprocessor">#define  Is_otg_id_transition()              (Tst_bits(AVR32_USBC.usbsta, AVR32_USBC_USBSTA_IDTI_MASK))</span>
<a name="l00123"></a>00123 <span class="preprocessor"></span>
<a name="l00124"></a>00124 
<a name="l00126"></a>00126 
<a name="l00131"></a><a class="code" href="usbc__otg_8h.html#a75d73881ecb7e5bb189945a44eaca926">00131</a> <span class="preprocessor">#define  otg_enable()                        (Set_bits(AVR32_USBC.usbcon, AVR32_USBC_USBCON_USBE_MASK))</span>
<a name="l00132"></a>00132 <span class="preprocessor"></span>
<a name="l00133"></a><a class="code" href="usbc__otg_8h.html#abded673e54cd1ae77635e96b8014fde0">00133</a> <span class="preprocessor">#define  otg_disable()                       (Clr_bits(AVR32_USBC.usbcon, AVR32_USBC_USBCON_USBE_MASK))</span>
<a name="l00134"></a><a class="code" href="usbc__otg_8h.html#a8b59dd3e898747ba11b77e043721269d">00134</a> <span class="preprocessor"></span><span class="preprocessor">#define  Is_otg_enabled()                    (Tst_bits(AVR32_USBC.usbcon, AVR32_USBC_USBCON_USBE_MASK))</span>
<a name="l00135"></a>00135 <span class="preprocessor"></span>
<a name="l00137"></a><a class="code" href="usbc__otg_8h.html#a17f769bdbef3aa2b409e7d1f38a476e2">00137</a> <span class="preprocessor">#define  otg_enable_pad()                    (Set_bits(AVR32_USBC.usbcon, AVR32_USBC_USBCON_OTGPADE_MASK))</span>
<a name="l00138"></a>00138 <span class="preprocessor"></span>
<a name="l00139"></a><a class="code" href="usbc__otg_8h.html#afb8ac7fd28e55bb74eca244bb55e5aa9">00139</a> <span class="preprocessor">#define  otg_disable_pad()                   (Clr_bits(AVR32_USBC.usbcon, AVR32_USBC_USBCON_OTGPADE_MASK))</span>
<a name="l00140"></a><a class="code" href="usbc__otg_8h.html#a27d435d22716763155f5adc4e554ddc6">00140</a> <span class="preprocessor"></span><span class="preprocessor">#define  Is_otg_pad_enabled()                (Tst_bits(AVR32_USBC.usbcon, AVR32_USBC_USBCON_OTGPADE_MASK))</span>
<a name="l00141"></a>00141 <span class="preprocessor"></span>
<a name="l00144"></a><a class="code" href="usbc__otg_8h.html#a810838fc4e0d3e2c8e85d5437f95f43b">00144</a> <span class="preprocessor">#define  Is_clock_usable()                   (Tst_bits(AVR32_USBC.usbsta, AVR32_USBC_USBSTA_CLKUSABLE_MASK))</span>
<a name="l00145"></a>00145 <span class="preprocessor"></span>
<a name="l00147"></a><a class="code" href="usbc__otg_8h.html#a077fe50b8211bbffb2e85af21bdd7270">00147</a> <span class="preprocessor">#define  otg_freeze_clock()                  (Set_bits(AVR32_USBC.usbcon, AVR32_USBC_USBCON_FRZCLK_MASK))</span>
<a name="l00148"></a><a class="code" href="usbc__otg_8h.html#a5ae16bfde864eeae8d476100598ed30f">00148</a> <span class="preprocessor"></span><span class="preprocessor">#define  otg_unfreeze_clock()                (Clr_bits(AVR32_USBC.usbcon, AVR32_USBC_USBCON_FRZCLK_MASK))</span>
<a name="l00149"></a><a class="code" href="usbc__otg_8h.html#acd2a715ca89a19b1666139d2e0a8e16b">00149</a> <span class="preprocessor"></span><span class="preprocessor">#define  Is_otg_clock_frozen()               (Tst_bits(AVR32_USBC.usbcon, AVR32_USBC_USBCON_FRZCLK_MASK))</span>
<a name="l00150"></a>00150 <span class="preprocessor"></span>
<a name="l00152"></a><a class="code" href="usbc__otg_8h.html#a16a8c715695f8bd79f4d92612b4e31dd">00152</a> <span class="preprocessor">#define  otg_configure_timeout(timer, timeout) (Set_bits(AVR32_USBC.usbcon, AVR32_USBC_USBCON_UNLOCK_MASK),\</span>
<a name="l00153"></a>00153 <span class="preprocessor">                                             Wr_bitfield(AVR32_USBC.usbcon, AVR32_USBC_USBCON_TIMPAGE_MASK, timer),\</span>
<a name="l00154"></a>00154 <span class="preprocessor">                                             Wr_bitfield(AVR32_USBC.usbcon, AVR32_USBC_USBCON_TIMVALUE_MASK, timeout),\</span>
<a name="l00155"></a>00155 <span class="preprocessor">                                             Clr_bits(AVR32_USBC.usbcon, AVR32_USBC_USBCON_UNLOCK_MASK))</span>
<a name="l00156"></a>00156 <span class="preprocessor"></span>
<a name="l00157"></a><a class="code" href="usbc__otg_8h.html#a20d5c018f8b887738566a4c72b98a985">00157</a> <span class="preprocessor">#define  otg_get_timeout(timer)              (Set_bits(AVR32_USBC.usbcon, AVR32_USBC_USBCON_UNLOCK_MASK),\</span>
<a name="l00158"></a>00158 <span class="preprocessor">                                             Wr_bitfield(AVR32_USBC.usbcon, AVR32_USBC_USBCON_TIMPAGE_MASK, timer),\</span>
<a name="l00159"></a>00159 <span class="preprocessor">                                             Clr_bits(AVR32_USBC.usbcon, AVR32_USBC_USBCON_UNLOCK_MASK),\</span>
<a name="l00160"></a>00160 <span class="preprocessor">                                             Rd_bitfield(AVR32_USBC.usbcon, AVR32_USBC_USBCON_TIMVALUE_MASK))</span>
<a name="l00161"></a>00161 <span class="preprocessor"></span>
<a name="l00162"></a>00162 
<a name="l00164"></a><a class="code" href="usbc__otg_8h.html#a1363f07ff7661cd17b377a123c7909e6">00164</a> <span class="preprocessor">#define  otg_get_fsm_drd_state()             (Rd_bitfield(AVR32_USBC.usbfsm, AVR32_USBC_USBFSM_DRDSTATE_MASK))</span>
<a name="l00165"></a>00165 <span class="preprocessor"></span>
<a name="l00166"></a>00166 
<a name="l00171"></a><a class="code" href="usbc__otg_8h.html#a1c36c82d1a43f6ebc4fd3dfb94c11ec9">00171</a> <span class="preprocessor">#define  otg_device_initiate_hnp()           (Set_bits(AVR32_USBC.usbcon, AVR32_USBC_USBCON_HNPREQ_MASK))</span>
<a name="l00172"></a>00172 <span class="preprocessor"></span>
<a name="l00173"></a><a class="code" href="usbc__otg_8h.html#a633db7d6340f7efb1394bb8e980ccb20">00173</a> <span class="preprocessor">#define  otg_host_accept_hnp()               (Set_bits(AVR32_USBC.usbcon, AVR32_USBC_USBCON_HNPREQ_MASK))</span>
<a name="l00174"></a>00174 <span class="preprocessor"></span>
<a name="l00175"></a><a class="code" href="usbc__otg_8h.html#a4da32aa5db53b7cfd8af8d90924bb230">00175</a> <span class="preprocessor">#define  otg_host_reject_hnp()               (Clr_bits(AVR32_USBC.usbcon, AVR32_USBC_USBCON_HNPREQ_MASK))</span>
<a name="l00176"></a>00176 <span class="preprocessor"></span>
<a name="l00177"></a><a class="code" href="usbc__otg_8h.html#ae135432701d4f044161b713685365e72">00177</a> <span class="preprocessor">#define  otg_device_initiate_srp()           (Set_bits(AVR32_USBC.usbcon, AVR32_USBC_USBCON_SRPREQ_MASK))</span>
<a name="l00178"></a>00178 <span class="preprocessor"></span>
<a name="l00179"></a><a class="code" href="usbc__otg_8h.html#af495eeaf0931f16f8dc5c9d84e81a18f">00179</a> <span class="preprocessor">#define  otg_select_vbus_srp_method()        (Set_bits(AVR32_USBC.usbcon, AVR32_USBC_USBCON_SRPSEL_MASK))</span>
<a name="l00180"></a><a class="code" href="usbc__otg_8h.html#a3bdcb7b1a692501cfd3917fc63a696d0">00180</a> <span class="preprocessor"></span><span class="preprocessor">#define  Is_otg_vbus_srp_method_selected()   (Tst_bits(AVR32_USBC.usbcon, AVR32_USBC_USBCON_SRPSEL_MASK))</span>
<a name="l00181"></a>00181 <span class="preprocessor"></span>
<a name="l00182"></a><a class="code" href="usbc__otg_8h.html#a84d0299bcf24c2f5c7d120cc285bd9cb">00182</a> <span class="preprocessor">#define  otg_select_data_srp_method()        (Clr_bits(AVR32_USBC.usbcon, AVR32_USBC_USBCON_SRPSEL_MASK))</span>
<a name="l00183"></a><a class="code" href="usbc__otg_8h.html#aaa8eabadd478e11ed88f864fbfdbf22e">00183</a> <span class="preprocessor"></span><span class="preprocessor">#define  Is_otg_data_srp_method_selected()   (!Is_otg_vbus_srp_method_selected())</span>
<a name="l00184"></a>00184 <span class="preprocessor"></span>
<a name="l00185"></a><a class="code" href="usbc__otg_8h.html#a7182496d8ec7719dd1d416667d957a8f">00185</a> <span class="preprocessor">#define  Is_otg_hnp()                        (Tst_bits(AVR32_USBC.usbcon, AVR32_USBC_USBCON_HNPREQ_MASK))</span>
<a name="l00186"></a>00186 <span class="preprocessor"></span>
<a name="l00187"></a><a class="code" href="usbc__otg_8h.html#a3569130bf8220eb9399d4961a04ae581">00187</a> <span class="preprocessor">#define  Is_otg_device_srp()                 (Tst_bits(AVR32_USBC.usbcon, AVR32_USBC_USBCON_SRPREQ_MASK))</span>
<a name="l00188"></a>00188 <span class="preprocessor"></span>
<a name="l00190"></a><a class="code" href="usbc__otg_8h.html#a455df45be6edd15b0997a8770f315244">00190</a> <span class="preprocessor">#define  otg_enable_hnp_error_interrupt()       (Set_bits(AVR32_USBC.usbcon, AVR32_USBC_USBCON_HNPERRE_MASK))</span>
<a name="l00191"></a>00191 <span class="preprocessor"></span>
<a name="l00192"></a><a class="code" href="usbc__otg_8h.html#a59af15ff1a2c87e443811121eb4183d5">00192</a> <span class="preprocessor">#define  otg_disable_hnp_error_interrupt()      (Clr_bits(AVR32_USBC.usbcon, AVR32_USBC_USBCON_HNPERRE_MASK))</span>
<a name="l00193"></a><a class="code" href="usbc__otg_8h.html#a733df4614f72f42895ed72dfbfba74cf">00193</a> <span class="preprocessor"></span><span class="preprocessor">#define  Is_otg_hnp_error_interrupt_enabled()   (Tst_bits(AVR32_USBC.usbcon, AVR32_USBC_USBCON_HNPERRE_MASK))</span>
<a name="l00194"></a>00194 <span class="preprocessor"></span>
<a name="l00195"></a><a class="code" href="usbc__otg_8h.html#ab9cc97891223d01fe86dc9a6fee326be">00195</a> <span class="preprocessor">#define  otg_ack_hnp_error_interrupt()          (AVR32_USBC.usbstaclr = AVR32_USBC_USBSTACLR_HNPERRIC_MASK)</span>
<a name="l00196"></a>00196 <span class="preprocessor"></span>
<a name="l00197"></a><a class="code" href="usbc__otg_8h.html#aee546eff445b99ac231391901e7854aa">00197</a> <span class="preprocessor">#define  otg_raise_hnp_error_interrupt()        (AVR32_USBC.usbstaset = AVR32_USBC_USBSTASET_HNPERRIS_MASK)</span>
<a name="l00198"></a>00198 <span class="preprocessor"></span>
<a name="l00199"></a><a class="code" href="usbc__otg_8h.html#a224b13bd3ddfffca1fa08aacb55364f3">00199</a> <span class="preprocessor">#define  Is_otg_hnp_error_interrupt()           (Tst_bits(AVR32_USBC.usbsta, AVR32_USBC_USBSTA_HNPERRI_MASK))</span>
<a name="l00200"></a>00200 <span class="preprocessor"></span>
<a name="l00202"></a><a class="code" href="usbc__otg_8h.html#ac5c0b8f0ee712ecfb8673aef9aac94da">00202</a> <span class="preprocessor">#define  otg_enable_role_exchange_interrupt()      (Set_bits(AVR32_USBC.usbcon, AVR32_USBC_USBCON_ROLEEXE_MASK))</span>
<a name="l00203"></a>00203 <span class="preprocessor"></span>
<a name="l00204"></a><a class="code" href="usbc__otg_8h.html#a032a4c6aef484f02cd80b795f1c7173c">00204</a> <span class="preprocessor">#define  otg_disable_role_exchange_interrupt()     (Clr_bits(AVR32_USBC.usbcon, AVR32_USBC_USBCON_ROLEEXE_MASK))</span>
<a name="l00205"></a><a class="code" href="usbc__otg_8h.html#a041dcf4542463a455dd91ba7c2e1364c">00205</a> <span class="preprocessor"></span><span class="preprocessor">#define  Is_otg_role_exchange_interrupt_enabled()  (Tst_bits(AVR32_USBC.usbcon, AVR32_USBC_USBCON_ROLEEXE_MASK))</span>
<a name="l00206"></a>00206 <span class="preprocessor"></span>
<a name="l00207"></a><a class="code" href="usbc__otg_8h.html#a5ea461b564ec80f5a8e7ae55eebed3bb">00207</a> <span class="preprocessor">#define  otg_ack_role_exchange_interrupt()         (AVR32_USBC.usbstaclr = AVR32_USBC_USBSTACLR_ROLEEXIC_MASK)</span>
<a name="l00208"></a>00208 <span class="preprocessor"></span>
<a name="l00209"></a><a class="code" href="usbc__otg_8h.html#a053451388b18df7fabfae4ca2515ee37">00209</a> <span class="preprocessor">#define  otg_raise_role_exchange_interrupt()       (AVR32_USBC.usbstaset = AVR32_USBC_USBSTASET_ROLEEXIS_MASK)</span>
<a name="l00210"></a>00210 <span class="preprocessor"></span>
<a name="l00211"></a><a class="code" href="usbc__otg_8h.html#a6a029c290011fb9b6b90528b70559607">00211</a> <span class="preprocessor">#define  Is_otg_role_exchange_interrupt()          (Tst_bits(AVR32_USBC.usbsta, AVR32_USBC_USBSTA_ROLEEXI_MASK))</span>
<a name="l00212"></a>00212 <span class="preprocessor"></span>
<a name="l00214"></a><a class="code" href="usbc__otg_8h.html#a1a4a2560928e0c885afe7a2e3248df64">00214</a> <span class="preprocessor">#define  otg_enable_srp_interrupt()          (Set_bits(AVR32_USBC.usbcon, AVR32_USBC_USBCON_SRPE_MASK))</span>
<a name="l00215"></a>00215 <span class="preprocessor"></span>
<a name="l00216"></a><a class="code" href="usbc__otg_8h.html#ac06a1dc7871c5776746a0cbeb59a4d46">00216</a> <span class="preprocessor">#define  otg_disable_srp_interrupt()         (Clr_bits(AVR32_USBC.usbcon, AVR32_USBC_USBCON_SRPE_MASK))</span>
<a name="l00217"></a><a class="code" href="usbc__otg_8h.html#a74f9c5c01442893c41d57407643bc0ba">00217</a> <span class="preprocessor"></span><span class="preprocessor">#define  Is_otg_srp_interrupt_enabled()      (Tst_bits(AVR32_USBC.usbcon, AVR32_USBC_USBCON_SRPE_MASK))</span>
<a name="l00218"></a>00218 <span class="preprocessor"></span>
<a name="l00219"></a><a class="code" href="usbc__otg_8h.html#a69db3b99dccd18690c93a20d5593bd08">00219</a> <span class="preprocessor">#define  otg_ack_srp_interrupt()             (AVR32_USBC.usbstaclr = AVR32_USBC_USBSTACLR_SRPIC_MASK)</span>
<a name="l00220"></a>00220 <span class="preprocessor"></span>
<a name="l00221"></a><a class="code" href="usbc__otg_8h.html#ad4d6485b59f1a95a60c447fa6b9f046f">00221</a> <span class="preprocessor">#define  otg_raise_srp_interrupt()           (AVR32_USBC.usbstaset = AVR32_USBC_USBSTASET_SRPIS_MASK)</span>
<a name="l00222"></a>00222 <span class="preprocessor"></span>
<a name="l00223"></a><a class="code" href="usbc__otg_8h.html#ac8632ba7878c2ca7c7d12facb279b25b">00223</a> <span class="preprocessor">#define  Is_otg_srp_interrupt()              (Tst_bits(AVR32_USBC.usbsta, AVR32_USBC_USBSTA_SRPI_MASK))</span>
<a name="l00224"></a>00224 <span class="preprocessor"></span>
<a name="l00225"></a>00225 
<a name="l00227"></a>00227 
<a name="l00228"></a>00228 <span class="preprocessor">#endif // _USBC_OTG_H_</span>
</pre></div></div>
</div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Data Structures</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Files</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&#160;</span>Variables</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark">&#160;</span>Typedefs</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(6)"><span class="SelectionMark">&#160;</span>Enumerations</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(7)"><span class="SelectionMark">&#160;</span>Enumerator</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(8)"><span class="SelectionMark">&#160;</span>Defines</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>



<hr class="footer"/><address class="footer"><small>
Generated on Mon Dec 19 2011 21:04:52 for OpenShoe by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.7.5.1
</small></address>

</body>
</html>
